﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ProjectStorageLib.Project;

public partial class Commercial_SearchResults : System.Web.UI.Page
{
    //public ProjectFilter projectFilter { get; set; }
    //public ProjectsManager Manager { get; private set; }

    protected void Page_Load(object sender, EventArgs e)
    {
        //if (!Page.IsPostBack)
        //{
            //List<ProjectManager> list = new List<ProjectManager>();

            //projectFilter = new ProjectFilter();
            //projectFilter.UserID = 2;

            //Manager = new ProjectsManager(projectFilter);
            //hCont.LoadData(Manager.GetResult().FirstOrDefault());
        //}
    }

    public List<ProjectManager> GetData()
    {
        List<ProjectManager> list = Session["SearchResult"] as List<ProjectManager>;
        Session.Remove("SearchResult");
        //projectFilter = new ProjectFilter();
        //projectFilter.UserID = 2;

        //Manager = new ProjectsManager(projectFilter);
        //list.AddRange(Manager.GetResult().ToList());

        //projectFilter.UserID = 1;

        //Manager = new ProjectsManager(projectFilter);
        //list.AddRange(Manager.GetResult().ToList());

        return list;

    }
}